package com.yms.web.controller;

import com.yms.spring.bean.User;
import com.yms.web.annotation.MyAutowired;
import com.yms.web.annotation.MyController;
import com.yms.web.annotation.MyRequestMapping;
import com.yms.web.annotation.MyResponseBody;

/**
 * @version : 1.0
 * @author: yangmingsong
 * @date: 2022/8/9-08-09-21:52
 * @description: spring5-test
 */


@MyController
public class TestController {

    @MyAutowired
    private User user;

    @MyRequestMapping(value = "test.do")
    @MyResponseBody
    public Object test(String name){
        user.run();
        return "hello world";
    }

    @MyRequestMapping(value = "test1.do")
    public Object test1(String name){
        return "index";
    }
}
